package com.xvheng.module.backendApi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xvheng.common.annotation.Excel;
import com.xvheng.common.core.domain.BaseEntity;

/**
 * 核销记录对象 tm_confirm_log
 * 
 * @author xvheng
 * @date 2025-01-03
 */
public class ConfirmLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 核销金额 */
    @Excel(name = "核销金额")
    private BigDecimal amount;

    /** 卡券id */
    @Excel(name = "卡券id")
    private String couponId;

    /** 用户券id */
    @Excel(name = "用户券id")
    private String userCouponId;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 卡券所属用户id */
    @Excel(name = "卡券所属用户id")
    private String userId;

    /** 核销者用户id */
    @Excel(name = "核销者用户id")
    private String operatorUserId;

    /** 商户id */
    @Excel(name = "商户id")
    private String merchantId;

    /** 核销店铺id */
    @Excel(name = "核销店铺id")
    private String storeId;

    /** 状态，A正常核销；D：撤销使用 */
    @Excel(name = "状态，A正常核销；D：撤销使用")
    private String status;

    /** 撤销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "撤销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelTime;

    /** 最后操作人 */
    @Excel(name = "最后操作人")
    private String operator;

    /** 操作来源user_id对应表t_account 还是 tm_user */
    @Excel(name = "操作来源user_id对应表t_account 还是 tm_user")
    private String operatorFrom;

    /** 类型, A充值,B消费,C退款 */
    @Excel(name = "类型, A充值,B消费,C退款")
    private String type;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setCouponId(String couponId) 
    {
        this.couponId = couponId;
    }

    public String getCouponId() 
    {
        return couponId;
    }
    public void setUserCouponId(String userCouponId) 
    {
        this.userCouponId = userCouponId;
    }

    public String getUserCouponId() 
    {
        return userCouponId;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOperatorUserId(String operatorUserId) 
    {
        this.operatorUserId = operatorUserId;
    }

    public String getOperatorUserId() 
    {
        return operatorUserId;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setStoreId(String storeId) 
    {
        this.storeId = storeId;
    }

    public String getStoreId() 
    {
        return storeId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCancelTime(Date cancelTime) 
    {
        this.cancelTime = cancelTime;
    }

    public Date getCancelTime() 
    {
        return cancelTime;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setOperatorFrom(String operatorFrom) 
    {
        this.operatorFrom = operatorFrom;
    }

    public String getOperatorFrom() 
    {
        return operatorFrom;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("amount", getAmount())
            .append("couponId", getCouponId())
            .append("userCouponId", getUserCouponId())
            .append("orderId", getOrderId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("operatorUserId", getOperatorUserId())
            .append("merchantId", getMerchantId())
            .append("storeId", getStoreId())
            .append("status", getStatus())
            .append("cancelTime", getCancelTime())
            .append("operator", getOperator())
            .append("operatorFrom", getOperatorFrom())
            .append("remark", getRemark())
            .append("type", getType())
            .toString();
    }
}
